<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // let arr = ["王博","王帅","管浩","马航"];

        // 返回数组中是否存在某个数据，如果有，返回true，如果没有，返回false
        // let bool = arr.includes('王1博');

        // console.log(bool);


        // let arr = [1,2,3,[4,5,[6,7]]];

        // flat默认只能拉平二维数组，
        // let arr2 = arr.flat();

        // let arr3 = arr.flat(2);

        let arr4 = [1,[[3,[4,[6,[8]]]],2]]

        let arr5 = arr4.flat(Infinity);

        console.log(arr5);



    </script>
</body>
</html>